home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Tools / mpp84 / SFD.py < prev    next >
Encoding:
Text File  |  1991-12-18  |  2.3 KB  |  111 lines

  1. -- SFD.py - MHS SFD definitions
  2.  
  3. -- @(#) $Header: /xtel/pp/pp-beta/Tools/mpp84/RCS/SFD.py,v 6.0 1991/12/18 20:31:34 jpo Rel $
  4. --
  5. -- $Log: SFD.py,v $
  6. -- Revision 6.0  1991/12/18  20:31:34  jpo
  7. -- Release 6.0
  8. --
  9. --
  10. --
  11.  
  12.  
  13. SFD DEFINITIONS ::=
  14.  
  15. %{
  16. #ifndef    lint
  17. static char *rcsid = "$Header: /xtel/pp/pp-beta/Tools/mpp84/RCS/SFD.py,v 6.0 1991/12/18 20:31:34 jpo Rel $";
  18. #endif    lint
  19. %}
  20.  
  21. BEGIN
  22.  
  23. PRINTER    print
  24.  
  25. Document    ::=  SEQUENCE OF ProtocolElement
  26.     
  27. ProtocolElement    ::=  CHOICE {
  28.             textUnit[3] IMPLICIT TextUnit,
  29.             specificLogicalDescriptor[5]
  30.                 IMPLICIT LogicalDescriptor
  31.              }
  32.  
  33.  
  34. -- text units
  35.  
  36. TextUnit    ::=  SEQUENCE {
  37.             contentPortionAttributes ContentPortionAttributes,
  38.             textInformation TextInformation
  39.              }
  40.  
  41. ContentPortionAttributes
  42.         ::=  SET { --none at present-- }
  43.  
  44. TextInformation    ::=  CHOICE {
  45.             T61String
  46.              }
  47.  
  48.  
  49. -- logical descriptor
  50.  
  51. LogicalDescriptor
  52.         ::=  SEQUENCE { LogicalObjectType, LogicalDescriptorBody }
  53.  
  54. LogicalObjectType
  55.         ::=  INTEGER {
  56.             document (0),
  57.             paragraph (1)
  58.             }
  59.  
  60. LogicalDescriptorBody
  61.         ::=  SET { 
  62.             -- variable attributes (if object is document) --
  63.             pageHeading[3] IMPLICIT T61String OPTIONAL,
  64.             -- variable attributes (if object is paragraph) --
  65.             layoutDirectives[4] IMPLICIT LayoutDirectives OPTIONAL,
  66.             presentationDirectives[5] IMPLICIT
  67.                 PresentationDirectives OPTIONAL,
  68.             -- default variable attributes for subordinate objects
  69.             --  (if any)
  70.             defaultValueLists[6] IMPLICIT SEQUENCE {
  71.                 DefaultValueList
  72.             } OPTIONAL
  73.              }
  74.  
  75. LayoutDirectives::=  SET {
  76.             leftIndentation[0] Offset OPTIONAL,
  77.             bottomBlankLines[3] Offset OPTIONAL
  78.              }
  79.  
  80. Offset        ::=  CHOICE { [1] IMPLICIT INTEGER}
  81.  
  82. PresentationDirectives
  83.         ::=  SET {
  84.             alignment[0] IMPLICIT Alignment OPTIONAL,
  85.             graphicRendition[1] IMPLICIT GraphicRendition OPTIONAL
  86.              }
  87.  
  88. Alignment    ::=  INTEGER { leftAligned(0), centered(2), justified(3) }
  89.  
  90. GraphicRendition::=  SEQUENCE OF GraphicRenditionAspect
  91.  
  92. GraphicRenditionAspect
  93.         ::=  INTEGER --an SGR parameter value; see T.61
  94.  
  95. DefaultValueList::=  CHOICE {
  96.             paragraphAttributes[1] IMPLICIT ParagraphAttributes
  97.              }
  98.  
  99. ParagraphAttributes
  100.         ::=  SET {
  101.             layoutDirectives < Attribute OPTIONAL,
  102.             presentationDirectives < Attribute OPTIONAL
  103.              }
  104.  
  105. Attribute    ::=  CHOICE {
  106.             layoutDirectives[0] IMPLICIT LayoutDirectives,
  107.             presentationDirectives[1] IMPLICIT PresentationDirectives
  108.              }
  109.  
  110. END
  111.